package com.jx.jingxuan.fres.listener;

import android.content.Context;

import com.jx.jingxuan.fres.utils.FileUtils;


/**
 * <li>Package:com.ttp.core.cores.fres.listener
 * <li>Author: lining
 * <li>Date: 2017/3/21
 * <li>Description: 下载图片的结果监听器
 */
public abstract class IDownloadResult implements IResult<String> {

    private String mFilePath;

    public IDownloadResult(String filePath) {
        this.mFilePath = filePath;
    }

    public IDownloadResult(Context context) {
        this.mFilePath = FileUtils.getImageDownloadPath(context);
    }

    public String getFilePath() {
        return mFilePath;
    }

    @Override
    public abstract void onResult(String filePath);

}
